package cn.wolfcode.mq;

import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * @author zhangh
 * @version 1.0
 * @date 2025/9/23 16:32
 * @description:异步消息message：用于秒杀下单
 */
@Getter@Setter
public class SeckillMessage implements Serializable {

    private static final long serialVersionUID = 1L;

    private String messageId;
    private String userId;
    private String seckillId;
    private String token;

    public SeckillMessage() {
    }

    public SeckillMessage(String userId, String seckillId, String messageId, String token) {
        this.userId = userId;
        this.seckillId = seckillId;
        this.messageId = messageId;
        this.token = token;
    }

}
